#ifndef APPLICATIONLOGIC_H
#define APPLICATIONLOGIC_H

#include <QObject>

class NetworkModel;

class QNetworkSession;
class QAbstractListModel;

class ApplicationLogic : public QObject
{
Q_OBJECT
Q_PROPERTY (QObject* networkModel READ networkModel CONSTANT)
Q_PROPERTY (QString ip READ ip NOTIFY ipChanged)
public:
    explicit ApplicationLogic(QObject *parent = 0);
    ~ApplicationLogic();

    QObject* networkModel() const;

    QString ip() const;

public slots:
    void setNetworkConfigurationRow(int row);

signals:
    void ipChanged();

private:
    NetworkModel* m_networkModel;
    QNetworkSession* m_session;


};

#endif // APPLICATIONLOGIC_H
